package dovs.instructions;

/** A <code>instanceof</code> instruction. */
public class Iinstanceof extends Instruction {
	private TypeSignature sig;

	public Iinstanceof(TypeSignature sig) {
		this.sig = sig;
	}

	public @Override
	String toAsm() {
		return "instanceof " + sig;
	}

	public @Override
	int stackChange() {
		return 0;
	}

	public @Override
	Object getArg(int i) {
		switch (i) {
		case 0:
			return sig;
		default:
			return null;
		}
	}
}
